package net.stock.db;

import javax.jdo.annotations.*;
import java.util.List;
import java.util.ArrayList;

/**
 * @author naim
 * @date Dec 23, 2009
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class UserItems {

//    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
//    private Long id;

    @PrimaryKey
    @Persistent
    private String email;

    @Persistent
    private List<String> items = new ArrayList<String>();

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public List<String> getItems() {
        return items;
    }

    public void setItems(List<String> items) {
        this.items = items;
    }
}
